<?php


$var = $_SERVER['HTTP_HOST'];
$root = $_SERVER['DOCUMENT_ROOT'];
var_dump($var,$root);

/*

//配置站点主机
define('WEB_SITE' , 'http://'.$_SERVER['HTTP_HOST']);

$webSite = WEB_SITE;
//定义站点目录
define('WEB_NAME' , $_SERVER['DOCUMENT_ROOT']);


*/